
<html>
<head>
<meta charset="UTF-8">
<title>字典选项信息新增</title>
<link href="../../static/easyui/themes/bootstrap/easyui.css" rel="stylesheet" type="text/css"/>
<link href="../../static/easyui/themes/icon.css" rel="stylesheet" type="text/css"/>
<link href="../../static/css/esaas-easyui-add.css" rel="stylesheet" type="text/css"/>
<script src="../../static/easyui/jquery.min.js" type="text/javascript"></script>
<script src="../../static/easyui/jquery.easyui.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../static/easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.util.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.jquery.ajax.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.easyui.util.js" type="text/javascript"></script>
<script src="../../ffres/dict/all.js"></script>
<a href="" target="_blank" id="commonLink" name="commonLink"></a>
</head>
<body class="easyui-layout">
	    <form id="ff" method="post">
	    	<div class="esaas-info-title">数据选项信息</div>
	    	<table class="esaas-info-add-table">
	    		<tr>
	    			<td width="15%" align="right">选项代码：</td>
	    			<td width="35%"><input class="easyui-textbox" type="text" name="dictCode" data-options="required:true" style="width:100%;height:25px;"></input></td>
	    			<td width="15%" align="right">选项名称：</td>
	    			<td width="35%">
	    				<input class="easyui-textbox" type="text" name="dictName" data-options="required:true" style="width:100%;height:25px;"></input>
	    			</td>	    			
	    		</tr>
	    		<tr>
	    			<td width="15%" align="right">选项类型：</td>
	    			<td width="35%"><select class="easyui-combobox" id="dictType" name="dictType" style="width:100%;height:25px;" data-options="required:true,editable:false,valueField:'enname',textField:'cnname',data:DM_DICT_TYPE"></select></td>
	    			<td width="15%" align="right">是否国际：</td>
	    			<td width="35%">
	    				<select class="easyui-combobox" id="dictIsStd" name="dictIsStd" style="width:100%;height:25px;" data-options="required:true,editable:false,valueField:'enname',textField:'cnname',data:STD_PUB_YN"></select>
	    			</td>
	    		</tr>
	    		<tr>
	    			<td width="15%" align="right">所属主题：</td>
	    			<td width="35%"><input class="easyui-textbox" type="text" name="subjectId" data-options="required:false" style="width:100%;height:25px;"></input></td>
	    			<td width="15%" align="right"></td>
	    			<td width="35%">
	    			</td>	    			
	    		</tr>   		
	    		<tr>
	    			<td width="15%" align="right" valign="top">选项描述：</td>
	    			<td colspan="3">
	    				<textarea name="dictRemarks" id="dictRemarks" class="easyui-validatebox" style="overflow-x:hidden;height:60px;width:98.5%;"></textarea>
	    			</td>
	    		</tr>
	    	</table>
	    </form>
	    <div style="text-align:center;padding:15px">
	    	<a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm()">&nbsp;保&nbsp;存&nbsp;</a>
	    	<a href="javascript:void(0)" class="easyui-linkbutton" onclick="closeForm()">&nbsp;关&nbsp;闭&nbsp;</a>
	    </div>
	</div>
	<script>
		$(function() {

		});

		function submitForm() {
			if (!$('#ff').form('validate'))
				return;
			var jsonData = $("#ff").serializeJson();
			$.restfulPostJson('../../api/dict/option/info', jsonData, function(data) {
				window.parent.reloadList();
			});
		};
		
		function closeForm() {
			window.parent.JLEUtil.closewin();
		}
	</script>
</body>
</html>
